home *** CD-ROM | disk | FTP | other *** search
- Path: lrz-muenchen.de!news
- From: ua302aa@lrz-muenchen.de ()
- Newsgroups: comp.lang.c
- Subject: Re: Q: '\n' character
- Date: 15 Apr 1996 08:30:26 GMT
- Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
- Distribution: world
- Message-ID: <4kt1f2$jjk@sparcserver.lrz-muenchen.de>
- References: <4kj66f$k0o@ren.cei.net> <1996Apr11.192937.25676@sq.com> <829396473snz@genesis.demon.co.uk> <4kpd2g$eeb@masala.cc.uh.edu> <317109ea.316698628@nntp.ix.netcom.com>
- NNTP-Posting-Host: sun2.lrz-muenchen.de
-
- miker3@ix.netcom.com (Mike Rubenstein) writes:
- >> Ok, I've got a question at this point. Is it really proper to say
- >> if (ptr)?
-
- Yes, it's "proper".
-
- >Read some different books.
-
- > if (ptr)
- > statement1
-
- >executes statement1 if ptr compares equal to 0 (ISO 6.6.4), i.e., if
- >ptr == 0.
-
- I'd say "if (ptr)" is aequivalent to "if ((ptr) != 0)", and "statement1"
- will be executed if "ptr" does not compare equal to 0
-
- Kurt
- --
- | Kurt Watzka Phone : +49-89-2180-6254
- | watzka@stat.uni-muenchen.de
-